﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using W7Toshil.Entity;
using System.IO.IsolatedStorage;
using System.Collections.Generic;
using System.Linq;

namespace W7Toshil.DataAccess
{
    public class ExpenseTransactionDao : BaseDao<Expense>, ITransactionDao<Expense>
    {

        #region ITransactionDao<Expense> Members

        public void Insert(Expense entity)
        {
            if (null == entity)
            {
                throw new ArgumentNullException("Invalid entity");
            }
            base.Save(entity, EXPENSE);
        }

        public void Update(Expense entity)
        {
            throw new NotImplementedException();
        }

        public void Delete(long id)
        {
            throw new NotImplementedException();
        }

        public Expense Get(long id)
        {
            throw new NotImplementedException();
        }

        public IList<Expense> FetchAll()
        {
            return base.FetchAll(EXPENSE  );
        }
        #endregion
    }
}
